<?php


namespace app\shop\model\chat;


use app\shop\model\user\UserModel;
use think\Model;
use think\model\concern\SoftDelete;

class GroupUserModel extends Model
{
    protected $name = 'group_user';
    protected $autoWriteTimestamp = true;


    public function user()
    {
        return $this->hasOne(UserModel::class, 'user_id', 'user_id')->bind(['mobile', 'realname', 'avatar']);
    }
}